<template>
    <div class='box'>
        <div class="content">
          <header>
            <slot name='myhh'>头部</slot>
          </header>
          <main>
            <slot name='default'>身体</slot>
          </main>
          <footer>
            <slot name='footer'>尾部</slot>
          </footer>
        </div>
    </div>
</template>
<script>
// @ is an alias to /src
export default {
    name: 'XXX',
    data() {
        return {
        
        }
    },
    created() {
      console.log(this)
    },
    components: {
        
    }
}
</script>
<style lang="less">
  .box{
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    top:0;
    left: 0;
    .content{
      width: 400px;
      background: #fff;
      min-height: 300px;
      margin: 40px auto;
    }
  }
</style>